package com.gridmobi.xrtb.domain.dsp;

import java.util.Date;

public class DspCfgList {
    private Long id;

    private Date updatetime;

    private String cfgkey;

    private Date createtime;

    private Integer state;

    private Integer deleteflag;

    private Integer cfgtype;

    private Integer aid;

    private Integer cid;

    private String cfgvalue;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getCfgkey() {
        return cfgkey;
    }

    public void setCfgkey(String cfgkey) {
        this.cfgkey = cfgkey == null ? null : cfgkey.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getDeleteflag() {
        return deleteflag;
    }

    public void setDeleteflag(Integer deleteflag) {
        this.deleteflag = deleteflag;
    }

    public Integer getCfgtype() {
        return cfgtype;
    }

    public void setCfgtype(Integer cfgtype) {
        this.cfgtype = cfgtype;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCfgvalue() {
        return cfgvalue;
    }

    public void setCfgvalue(String cfgvalue) {
        this.cfgvalue = cfgvalue == null ? null : cfgvalue.trim();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof DspCfgList) {
            DspCfgList o = (DspCfgList) obj;
            if (this.getAid().equals(o.getAid())
                    && this.getCid().equals(o.getCid())
                    && this.getCfgkey().equals(o.getCfgkey())
                    && this.getCfgtype().equals(o.getCfgtype())
                    && this.getCfgvalue().equals(o.getCfgvalue())) {
                return true;
            }
        }
        return false;
    }

    @Override
    public String toString() {
        return this.getCid()+"-"+this.getCfgkey()+"-"+this.getCfgtype()+"-"+this.getCfgvalue();
    }
}